<?php

function alert($msg='Alerta')
{
    $fields[0]  = new Div('msg', $msg);
    $fields[0]  ->addStyle('text-align', 'center');
    $fields[0]  ->addStyle('height', '50%');
    $fields[0]  ->addStyle('color', 'black');
    $fields[1]  = new Button('ok', 'OK', 'alert(\'ok\')', 'button');
    $div        = new Div(null,$fields, 'alert');
    $alert      = new DivForm('divUser', $div, '200', '50', 'Alerta',  'divForm') ;
    $alert      ->setPosition(20,60);
    put($alert);
}

?>
